package com.qeegoo.b2bautozityp.moudle.good.view.carmodel;

import com.qeegoo.b2bautozityp.R;
import com.qeegoo.b2bautozityp.databinding.FragGoodsCarmodelSelectBinding;
import com.qeegoo.b2bautozityp.injector.component.DaggerGoodsFragmentComponent;
import com.qeegoo.b2bautozityp.moudle.base.BaseFragment;
import com.qeegoo.b2bautozityp.moudle.good.viewmodel.carmodel.CarModelSelectViewModel;

import javax.inject.Inject;

/**
 * 王少岩 在 2017/9/22 创建了它
 */

public class CarModelSelectFragment extends BaseFragment<FragGoodsCarmodelSelectBinding> {
    @Inject
    CarModelSelectViewModel mViewModel;

    @Override
    protected int attachLayoutRes() {
        return R.layout.frag_goods_carmodel_select;
    }

    @Override
    protected void initInjector() {
        DaggerGoodsFragmentComponent.builder().appComponent(getAppComponent()).fragmentComponent(getFragmentComponent()).build().inject(this);
    }

    @Override
    protected void initViews() {
        mBinding.setViewModel(mViewModel);
    }
}
